package org.come.Jpanel;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.List;
import java.util.Map;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import org.come.bean.ConfigureBean;
import org.come.entity.Goodstable;
import org.come.model.Configure;
import org.come.mouslisten.WLLMouslisten;
import org.come.tt.LadderBoxOpenMouslisten;
import org.come.tt.LadderPanelBtn;
import org.come.until.CutButtonImage;
import org.come.until.UserMessUntil;

import com.tool.btn.FormsOnOffBtn;
import com.tool.btn.RoleCaoZuoBtn;
import com.tool.tcpimg.UIUtils;
import com.updateNew.MyIsif;

public class BjczJpanel extends JPanel {
    private JLabel  labtext,labtext1,labtext2;//
    
    private static FormsOnOffBtn palBtn,protectBtn,
    dytBtn,dgBtn,CHA,chuan,
    xfBtn,huanj,slBtn,jdBtn,arenaBtn,pdBtn,yzBtn,
    TJBtn1,zhuanshen,dnBtn,
    CBGBtn,ttBtn,lsBtn,fuzhu,
    zaBtn,RanklistBtn,byBtn,
    ypBtn,gangBtn,friendsBtn,
    taskBtn,petBtn,childBtn,
    knapsackBtn,QianDaoMenu,GMshop,TtBtn,bjczBtn
			,spBtn,ksBtn,bpBtn;
    
    
    private static JTextField findName,findName1;
    
    private Goodstable good;
    private static String[] Fvalue;
    private static JTextArea testMes;// 用来显示聊天信息
    public String npczb;
    public static String npcfeiji;
    public BjczJpanel() {

        this.setPreferredSize(new Dimension(636,437));
        this.setLayout(null);
        this.setBackground(UIUtils.Color_BACK);


        Font font = new Font("楷体", 0, 16);

        	font = new Font("楷体", Font.BOLD, 16);
        	// 关闭按钮事件
        	FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 3000);
        	offBtn.setBounds(611, 0, 25, 25);
        	this.add(offBtn);
        	labtext = new JLabel();
        	labtext.setForeground(Color.black);
        	labtext.setFont(font);
        	labtext.setBounds(295, -11, 250, 50);
        	labtext.setText("快捷操作");
//        	this.add(labtext);
        	
        	font = new Font("楷体", 0, 20);
        	labtext1 = new JLabel();
        	labtext1.setForeground(Color.black);
        	labtext1.setFont(font);
        	labtext1.setBounds(145, 15, 250, 50);
        	labtext1.setText("功能类");
        	this.add(labtext1);
        	
        	labtext2 = new JLabel();
        	labtext2.setForeground(Color.black);
        	labtext2.setFont(font);
        	labtext2.setBounds(445, 15, 250, 50);
        	labtext2.setText("商店类");
        	this.add(labtext2);



		ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
		Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
		Configure configure = item.get(new BigDecimal(1));
		int szz = 5;//3种族
		if(configure.getLzjskg()!=null) {
			szz = Integer.parseInt(configure.getLzjskg());
		}

		if(szz == 5) {

        	/**----------------------------------------功能类-------------------------------------------*/
        	//伙伴
        	palBtn = new FormsOnOffBtn("skin/8100226/button/bjczzzhbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 105);
        	palBtn.setBounds(45, 85, 73, 33);
        	this.add(palBtn);
        	//双倍
        	lsBtn = new FormsOnOffBtn("skin/8100226/button/bjczsbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 81);
        	lsBtn.setBounds(45, 175, 73, 33);
        	this.add(lsBtn);
        	//典当
        	TJBtn1 = new FormsOnOffBtn("skin/8100226/button/bjczddsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 29);
        	TJBtn1.setBounds(45, 220, 73, 33);
        	this.add(TJBtn1);
        	//掉落查询
        	CHA = new FormsOnOffBtn("skin/8100226/button/bjczdlcxsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 600);
        	CHA.setBounds(235, 130, 73, 33);
         	this.add(CHA);
        	//医治
        	jdBtn = new FormsOnOffBtn("skin/8100226/button/bjczyzsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1026);
        	jdBtn.setBounds(45, 310, 73, 33);
//        	jdBtn.setBounds(45, 310, 73, 33); 
        	this.add(jdBtn);
        	//试炼幻境
        	protectBtn = new FormsOnOffBtn("skin/8100226/button/bjczhjslsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 111);
        	protectBtn.addMouseListener(new WLLMouslisten(38));
        	protectBtn.setBounds(140, 85, 73, 33);
        	this.add(protectBtn);
			//天梯
			LadderPanelBtn ladderPanelBtn = new LadderPanelBtn("skin/8100226/button/4天梯.png", 1, 6);
			ladderPanelBtn.setBounds(140, 130, 73, 33);
			ladderPanelBtn.addMouseListener(new LadderBoxOpenMouslisten());
				this.add(ladderPanelBtn);

			//竞技按钮 移动快捷菜单
			 arenaBtn = new FormsOnOffBtn("skin/8100226/button/4竞技.png", 1, UIUtils.COLOR_BTNTEXT, "", 5);
			 arenaBtn.setBounds(140, 175, 73, 33);
			    this.add(arenaBtn);

			//激情泡点
			pdBtn = new FormsOnOffBtn("skin/8100226/button/4泡点.png", 1, UIUtils.COLOR_BTNTEXT, "", 3003);//CHA
			pdBtn.setBounds(140, 220, 73, 33);
			if("开".equals(configure.getPdgnkg())) {
				this.add(pdBtn);
			}

        	//排行榜
			//RanklistBtn = new FormsOnOffBtn("skin/8100226/button/bjczphbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 60);
			//RanklistBtn.addMouseListener(new WLLMouslisten(39));
			//RanklistBtn.setBounds(235, 130, 73, 33);
			//this.add(RanklistBtn);
        	//NPC查询
        	chuan = new FormsOnOffBtn("skin/8100226/button/bjczcjcssm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1101);//CHA
        	chuan.addMouseListener(new WLLMouslisten(36));
        	chuan.setBounds(140, 175, 175, 30);
//        	this.add(chuan);
        	//赎当取回
        	arenaBtn = new FormsOnOffBtn("skin/8100226/button/bjczqhsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 1024);
        	arenaBtn.setBounds(45, 265, 175, 30);
//        	arenaBtn.setBounds(140, 220, 73, 33);
        	this.add(arenaBtn);
        	//SVIP专属
			//GMshop = new FormsOnOffBtn("skin/8100226/button/bjczsvipsm.png", 1, 2000);//CHA
			//GMshop.setBounds(235, 220, 73, 33);
			//this.add(GMshop);
        	
        	//转生
        	zhuanshen = new FormsOnOffBtn("skin/8100226/button/bjczzssm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,999);
        	zhuanshen.addMouseListener(new WLLMouslisten(4));
        	zhuanshen.setBounds(235, 85, 73, 33);
        	this.add(zhuanshen);
        	/**-----------------------------------------商店类---------------------------------------*/
        	
        	//杂货店
        	zaBtn = new FormsOnOffBtn("skin/8100226/button/bjczzhdsm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,  79);
        	zaBtn.addMouseListener(new WLLMouslisten(5));
        	zaBtn.setBounds(350, 85, 73, 33);
        	this.add(zaBtn);
			//藏宝阁
			CBGBtn = new FormsOnOffBtn("skin/8100226/button/bjczcbgsm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,78);
			CBGBtn.setBounds(350, 130, 73, 33);
			this.add(CBGBtn);
        	//道具兑换
        	huanj = new FormsOnOffBtn("skin/8100226/button/bjczdhsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 700);
        	huanj.setBounds(45, 130, 73, 33);//x+95,y+45
        	huanj.addMouseListener(new WLLMouslisten(37));
        	this.add(huanj);
        	//大雁塔
        	dytBtn = new FormsOnOffBtn("skin/8100226/button/bjczdytsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 120);
        	dytBtn.setBounds(350, 175, 73, 33);//x+95,y+45
        	this.add(dytBtn);
        	//地宫商店
        	dgBtn = new FormsOnOffBtn("skin/8100226/button/bjczdgsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 121);
        	dgBtn.setBounds(350, 220, 73, 33);//x+95,y+45
        	this.add(dgBtn);
        	//寻芳商店
        	xfBtn = new FormsOnOffBtn("skin/8100226/button/bjczxfsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 123);
        	xfBtn.setBounds(350, 265, 73, 33);//x+95,y+45
        	this.add(xfBtn);
        	//水陆商店
        	slBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 126);
        	slBtn.setBounds(350, 310, 73, 33);//x+95,y+45
        	this.add(slBtn);

			//勇者兑换
			yzBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 92);
			yzBtn.setBounds(350, 355, 73, 33);//x+95,y+45
			this.add(yzBtn);
        	
        	if("开".equals(configure.getTtgnkg())) {
        		//天梯商店
        		ttBtn = new FormsOnOffBtn("skin/8100226/button/bjczttsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 127);
        		ttBtn.setBounds(540, 85, 73, 33);//x+95,y+45
        		this.add(ttBtn);
        	}
        	
        	
        	//大闹天宫
        	dnBtn = new FormsOnOffBtn("skin/8100226/button/bjczdntgsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 128);
        	dnBtn.setBounds(445, 85, 73, 33);
        	this.add(dnBtn);
        	
        	//药品商店
        	ypBtn = new FormsOnOffBtn("skin/8100226/button/bjczypsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 131);
        	ypBtn.setBounds(445, 130, 73, 33);
        	this.add(ypBtn);
        	//符文商店
        	byBtn = new FormsOnOffBtn("skin/8100226/button/bjczfwsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 130);
        	byBtn.setBounds(445, 175, 73, 33);
        	this.add(byBtn);
        	//绑玉商店
        	byBtn = new FormsOnOffBtn("skin/8100226/button/bjczbysdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 129);
        	byBtn.setBounds(445, 220, 73, 33);
        	this.add(byBtn);
		}

        else if(szz == 4) {

			/**----------------------------------------功能类-------------------------------------------*/
			//伙伴
			palBtn = new FormsOnOffBtn("skin/8100226/button/bjczzzhbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 105);
			palBtn.setBounds(45, 85, 73, 33);
			this.add(palBtn);
			//藏宝阁
			CBGBtn = new FormsOnOffBtn("skin/8100226/button/bjczcbgsm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,78);
			CBGBtn.setBounds(350, 130, 73, 33);
			this.add(CBGBtn);
			//双倍
			lsBtn = new FormsOnOffBtn("skin/8100226/button/bjczsbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 81);
			lsBtn.setBounds(45, 175, 73, 33);
			this.add(lsBtn);
			//典当
			TJBtn1 = new FormsOnOffBtn("skin/8100226/button/bjczddsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 29);
			TJBtn1.setBounds(45, 220, 73, 33);
			this.add(TJBtn1);
			//掉落查询
			CHA = new FormsOnOffBtn("skin/8100226/button/bjczdlcxsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 600);
			CHA.setBounds(235, 130, 73, 33);
			this.add(CHA);
			//医治
			jdBtn = new FormsOnOffBtn("skin/8100226/button/bjczyzsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1026);
			jdBtn.setBounds(45, 310, 73, 33);
//        	jdBtn.setBounds(45, 310, 73, 33);
			this.add(jdBtn);
			//试炼幻境
			protectBtn = new FormsOnOffBtn("skin/8100226/button/bjczhjslsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 111);
			protectBtn.addMouseListener(new WLLMouslisten(38));
			protectBtn.setBounds(140, 85, 73, 33);
			this.add(protectBtn);
			//天梯
			LadderPanelBtn ladderPanelBtn = new LadderPanelBtn("skin/8100226/button/4天梯.png", 1, 6);
			ladderPanelBtn.setBounds(140, 130, 73, 33);
			ladderPanelBtn.addMouseListener(new LadderBoxOpenMouslisten());
			this.add(ladderPanelBtn);

			//竞技按钮 移动快捷菜单
			arenaBtn = new FormsOnOffBtn("skin/8100226/button/4竞技.png", 1, UIUtils.COLOR_BTNTEXT, "", 5);
			arenaBtn.setBounds(140, 175, 73, 33);
			this.add(arenaBtn);

			//激情泡点
			pdBtn = new FormsOnOffBtn("skin/8100226/button/4泡点.png", 1, UIUtils.COLOR_BTNTEXT, "", 3003);//CHA
			pdBtn.setBounds(140, 220, 73, 33);
			if("开".equals(configure.getPdgnkg())) {
				this.add(pdBtn);
			}

			//排行榜
			//RanklistBtn = new FormsOnOffBtn("skin/8100226/button/bjczphbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 60);
			//RanklistBtn.addMouseListener(new WLLMouslisten(39));
			//RanklistBtn.setBounds(235, 130, 73, 33);
			//this.add(RanklistBtn);
			//NPC查询
			chuan = new FormsOnOffBtn("skin/8100226/button/bjczcjcssm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1101);//CHA
			chuan.addMouseListener(new WLLMouslisten(36));
			chuan.setBounds(140, 175, 175, 30);
//        	this.add(chuan);
			//赎当取回
			arenaBtn = new FormsOnOffBtn("skin/8100226/button/bjczqhsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 1024);
			arenaBtn.setBounds(45, 265, 175, 30);
//        	arenaBtn.setBounds(140, 220, 73, 33);
			this.add(arenaBtn);
			//SVIP专属
			//GMshop = new FormsOnOffBtn("skin/8100226/button/bjczsvipsm.png", 1, 2000);//CHA
			//GMshop.setBounds(235, 220, 73, 33);
			//this.add(GMshop);

			//转生
			zhuanshen = new FormsOnOffBtn("skin/8100226/button/bjczzssm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,999);
			zhuanshen.addMouseListener(new WLLMouslisten(4));
			zhuanshen.setBounds(235, 85, 73, 33);
			this.add(zhuanshen);
			/**-----------------------------------------商店类---------------------------------------*/

			//杂货店
			zaBtn = new FormsOnOffBtn("skin/8100226/button/bjczzhdsm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,  79);
			zaBtn.addMouseListener(new WLLMouslisten(5));
			zaBtn.setBounds(350, 85, 73, 33);
			this.add(zaBtn);
			//道具兑换
			huanj = new FormsOnOffBtn("skin/8100226/button/bjczdhsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 700);
			huanj.setBounds(45, 130, 73, 33);//x+95,y+45
			huanj.addMouseListener(new WLLMouslisten(37));
			this.add(huanj);
			//大雁塔
			dytBtn = new FormsOnOffBtn("skin/8100226/button/bjczdytsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 120);
			dytBtn.setBounds(350, 175, 73, 33);//x+95,y+45
			this.add(dytBtn);
			//地宫商店
			dgBtn = new FormsOnOffBtn("skin/8100226/button/bjczdgsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 121);
			dgBtn.setBounds(350, 220, 73, 33);//x+95,y+45
			this.add(dgBtn);
			//寻芳商店
			xfBtn = new FormsOnOffBtn("skin/8100226/button/bjczxfsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 123);
			xfBtn.setBounds(350, 265, 73, 33);//x+95,y+45
			this.add(xfBtn);
			//水陆商店
			slBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 126);
			slBtn.setBounds(350, 310, 73, 33);//x+95,y+45
			this.add(slBtn);

			//勇者兑换
			yzBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 92);
			yzBtn.setBounds(350, 355, 73, 33);//x+95,y+45
			this.add(yzBtn);

			if("开".equals(configure.getTtgnkg())) {
				//天梯商店
				ttBtn = new FormsOnOffBtn("skin/8100226/button/bjczttsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 127);
				ttBtn.setBounds(540, 85, 73, 33);//x+95,y+45
				this.add(ttBtn);
			}


			//大闹天宫
			dnBtn = new FormsOnOffBtn("skin/8100226/button/bjczdntgsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 128);
			dnBtn.setBounds(445, 85, 73, 33);
			this.add(dnBtn);

			//药品商店
			ypBtn = new FormsOnOffBtn("skin/8100226/button/bjczypsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 131);
			ypBtn.setBounds(445, 130, 73, 33);
			this.add(ypBtn);
			//符文商店
			byBtn = new FormsOnOffBtn("skin/8100226/button/bjczfwsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 130);
			byBtn.setBounds(445, 175, 73, 33);
			this.add(byBtn);
			//绑玉商店
			byBtn = new FormsOnOffBtn("skin/8100226/button/bjczbysdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 129);
			byBtn.setBounds(445, 220, 73, 33);
			this.add(byBtn);
		}

		else if(szz == 3) {


			/**----------------------------------------功能类-------------------------------------------*/
			//伙伴
			palBtn = new FormsOnOffBtn("skin/8100226/button/bjczzzhbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 105);
			palBtn.setBounds(45, 85, 73, 33);
			this.add(palBtn);
			//道具兑换
			huanj = new FormsOnOffBtn("skin/8100226/button/bjczdhsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 700);
			huanj.setBounds(45, 85+ 1 * 45, 73, 33);//x+95,y+45
			huanj.addMouseListener(new WLLMouslisten(37));
			this.add(huanj);
			//双倍
			lsBtn = new FormsOnOffBtn("skin/8100226/button/bjczsbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 81);
			lsBtn.setBounds(45, 85+ 2 * 45, 73, 33);
			this.add(lsBtn);
			//典当
			TJBtn1 = new FormsOnOffBtn("skin/8100226/button/bjczddsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 29);
			TJBtn1.setBounds(140, 85, 73, 33);
			this.add(TJBtn1);
			//掉落查询
			CHA = new FormsOnOffBtn("skin/8100226/button/bjczdlcxsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 600);
			CHA.setBounds(235, 85+ 1 * 45, 73, 33);
			this.add(CHA);
			//医治
			jdBtn = new FormsOnOffBtn("skin/8100226/button/bjczyzsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1026);
			jdBtn.setBounds(45, 85+ 3 * 45, 73, 33);
//        	jdBtn.setBounds(45, 310, 73, 33);
			this.add(jdBtn);

			//排行榜
			//RanklistBtn = new FormsOnOffBtn("skin/8100226/button/bjczphbsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 60);
			//RanklistBtn.addMouseListener(new WLLMouslisten(39));
			//RanklistBtn.setBounds(235, 130, 73, 33);
			//this.add(RanklistBtn);
			//NPC查询
			chuan = new FormsOnOffBtn("skin/8100226/button/bjczcjcssm.png", 1, UIUtils.COLOR_BTNTEXT, "", 1101);//CHA
			chuan.addMouseListener(new WLLMouslisten(36));
			chuan.setBounds(235, 265, 175, 30);
//        	this.add(chuan);
			//赎当取回
			arenaBtn = new FormsOnOffBtn("skin/8100226/button/bjczqhsm.png", 1, UIUtils.COLOR_BTNTEXT, "" , 1024);
			arenaBtn.setBounds(140, 85+ 1 * 45, 175, 30);
//        	arenaBtn.setBounds(140, 220, 73, 33);
			this.add(arenaBtn);
			//转生
			zhuanshen = new FormsOnOffBtn("skin/8100226/button/bjczzssm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,999);
			zhuanshen.addMouseListener(new WLLMouslisten(4));
			zhuanshen.setBounds(235, 85, 73, 33);
			this.add(zhuanshen);
			/**-----------------------------------------商店类---------------------------------------*/

			//杂货店
			zaBtn = new FormsOnOffBtn("skin/8100226/button/bjczzhdsm.png", 1, UIUtils.COLOR_BTNTEXT, "" ,  79);
			zaBtn.addMouseListener(new WLLMouslisten(5));
			zaBtn.setBounds(350, 85, 73, 33);
			this.add(zaBtn);
			//大雁塔
			dytBtn = new FormsOnOffBtn("skin/8100226/button/bjczdytsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 120);
			dytBtn.setBounds(350,  85+ 1 * 45, 73, 33);//x+95,y+45
			this.add(dytBtn);
			//地宫商店
			dgBtn = new FormsOnOffBtn("skin/8100226/button/bjczdgsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 121);
			dgBtn.setBounds(350, 85+ 2 * 45, 73, 33);//x+95,y+45
			this.add(dgBtn);
			//寻芳商店
			xfBtn = new FormsOnOffBtn("skin/8100226/button/bjczxfsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 123);
			xfBtn.setBounds(350, 85+ 3 * 45, 73, 33);//x+95,y+45
			this.add(xfBtn);
			//水陆商店
			slBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 126);
			slBtn.setBounds(350, 85+ 4 * 45, 73, 33);//x+95,y+45
			this.add(slBtn);

			//勇者兑换
			yzBtn = new FormsOnOffBtn("skin/8100226/button/bjczslsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 92);
			yzBtn.setBounds(350, 355, 73, 33);//x+95,y+45
			this.add(yzBtn);

			//大闹天宫
			dnBtn = new FormsOnOffBtn("skin/8100226/button/bjczdntgsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 128);
			dnBtn.setBounds(445, 85, 73, 33);
			this.add(dnBtn);

			//药品商店
			ypBtn = new FormsOnOffBtn("skin/8100226/button/bjczypsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 131);
			ypBtn.setBounds(445, 85+ 1 * 45, 73, 33);
			this.add(ypBtn);
			//符文商店
			byBtn = new FormsOnOffBtn("skin/8100226/button/bjczfwsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 130);
			byBtn.setBounds(445, 85+ 2 * 45, 73, 33);
			this.add(byBtn);


			//饰品商店
			spBtn = new FormsOnOffBtn("skin/8100226/button/spsdsdsm.png", 1, UIUtils.COLOR_BTNPUTONG,"", 132);
			spBtn.setBounds(540, 85, 73, 33);//x+95,y+45
			this.add(spBtn);

			//矿石商店
			ksBtn = new FormsOnOffBtn("skin/8100226/button/kssdsdsm.png", 1, UIUtils.COLOR_BTNPUTONG,"", 133);
			ksBtn.setBounds(540, 85+ 1 * 45,  73, 33);//x+95,y+45
			this.add(ksBtn);

			//帮派商店
			bpBtn = new FormsOnOffBtn("skin/8100226/button/bpsdsdsm.png", 1, UIUtils.COLOR_BTNPUTONG,"", 134);
			bpBtn.setBounds(540, 85+ 2 * 45,  73, 33);//x+95,y+45
			this.add(bpBtn);


			if("开".equals(configure.getTtgnkg())) {
				//天梯商店
				ttBtn = new FormsOnOffBtn("skin/8100226/button/bjczttsdsm.png", 1, UIUtils.COLOR_BTNTEXT, "", 127);
				ttBtn.setBounds(540, 85+ 3 * 45,  73, 33);//x+95,y+45
				this.add(ttBtn);
			}


		}
        
        
        
        
    }
    
    
    
    //
    
    private static void BjczJpanel() {
		// TODO Auto-generated method stub
		
	}

    
    
    
	
	
	private static void BjczJpanel(List<Map<String, Object>> dataNpcMapList) {
		// TODO Auto-generated method stub
		
	}

   
    
    private ImageIcon icon;

    public static int getCurrentMonthDay() {
        Calendar a = Calendar.getInstance();

        a.set(Calendar.DATE, 1);

        a.roll(Calendar.DATE, -1);

        int maxDate = a.get(Calendar.DATE);

        return maxDate;

    }

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        	icon = CutButtonImage.getImage("inkImg/old/background/bjczdt.png", 636,437);
        	g.drawImage(icon.getImage(), 0, 0, 636,437, this);

        
    }


    
    public static JTextField getFindName() {
		return findName;
	}

	public static void setFindName(JTextField findName) {
		BjczJpanel.findName = findName;
	}

	public static JTextField getFindName1() {
		return findName1;
	}

	public static void setFindName1(JTextField findName1) {
		BjczJpanel.findName1 = findName1;
	}

	public Goodstable getGood() {
		return good;
	}

	public void setGood(Goodstable good) {
		this.good = good;
	}

	public String[] getFvalue() {
		return Fvalue;
	}

	public void setFvalue(String[] fvalue) {
		Fvalue = fvalue;
	}

	public JTextArea getTestMes() {
		return testMes;
	}

	public void setTestMes(JTextArea testMes) {
		BjczJpanel.testMes = testMes;
	}
	
	
}
